<?php require_once("head.php");
filter_input(INPUT_GET,'pid',FILTER_SANITIZE_NUMBER_INT);
$id = $_GET['pid'];
$row = $dosql->GetOne("SELECT * FROM `#@__infolist` WHERE id=$id");
if(is_array($row)) {
//增加一次点击量
$dosql->ExecNoneQuery("UPDATE `#@__infolist` SET hits=hits+1 WHERE id=$id");


$row['picurl'] = strlen($row['picurl']) < 1 ? "/images/ttBg.jpg" : $row['picurl'];
$picurl = file_exists(__DIR__.$row['picurl']) ? $row['picurl'] : "/images/ttBg.jpg";

?>


<body>

<div id="app">


    <div class="loadingBg">
        <div class="banner_pic" style="background-image: url('<?php echo $picurl ?>');"></div>
    </div>
    <div class="view_box">
        <div class="view_title">
            <div class="auto-x">
                <div class="title_h1">
                    <h1>
                        <span id="scrollobj"><?php echo $row['title'] ?></span>
                        <i class="dig_icon1"></i>
                    </h1>
                </div>

                <div class="user_info">发布者：<?php echo $row['author'] ?>
                    |
                   <span class="user_time"><?php echo date('Y-m-d H:i:s',$row['posttime']) ?></span>
                    <span class="user_see"><i></i>浏览（<?php echo $row['hits'] ?>）</span>
                  </div>
            </div>
        </div>




    <div class='b_prew_main'>
        <div class="m_prew_left">
            <line-info></line-info>
            <div class="article_content">
                <div class="article_cont">
                   <?php echo $row['content'] ?>
                </div>
            <?php
            }
            ?>

        </div>
    </div>
    <div class="home_right" style="width: 20%;float: right">
        <advertising type=2></advertising>
        <pic-toggle type=4 mddid=0></pic-toggle>
    </div>
    </div>



<?php require_once('footer.php');?>